﻿using KYDataMigrationDemo02.Application.Dtos;
using KYDataMigrationDemo02.Application.IServices;

namespace KYDataMigrationDemo02.Application.AppServices
{
    public class UserAppService : IDynamicApiController
    {
        private readonly IUserService userService;

        public UserAppService(IUserService userService)
        {
            this.userService = userService;
        }

        /// <summary>
        /// 获取所有用户信息
        /// </summary>
        /// <returns></returns>
        public List<UserDto> GetAll()
        {
            return userService.GetAll();
        }
    }
}
